package com.um.jdy.platform.activity.manager;


import com.um.jdy.common.activity.service.DiscountsService;
import com.um.jdy.common.activity.service.DiscountsStationService;
import com.um.jdy.platform.station.entity.vo.StationItemVO;
import com.um.springboot.starter.orm.manager.BaseManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 管理类：满减活动站场表
 */
@Component
public class DiscountsStationManager extends BaseManager<DiscountsStationService> {

    @Autowired
    protected DiscountsService discountsService;


    public List<StationItemVO> getDiscountsStations(String discountsId) {
        List<StationItemVO> list = service.getViewModelList("get_discounts_station_list", StationItemVO.class, new Object[]{discountsId,getComId()});
        return list;
    }
}
